package com.kgc.sportscircle.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：实体类
* @author 杨海文
* @date 2019/07/22
*/
public class Forumcomment implements Serializable {

   /**id*/
    private Integer id;
   /**评论id*/
    private Integer postId;
   /**用户id*/
    private Integer userId;
   /**回复内容*/
    private String replyContent;
   /**回复时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dataTime;

    public Forumcomment(){}
    
    public Forumcomment(Integer id,Integer postId,Integer userId,String replyContent,Date dataTime){
        this.id = id;
        this.postId = postId;
        this.userId = userId;
        this.replyContent = replyContent;
        this.dataTime = dataTime;
    }

   /**获取id属性的值*/
    public Integer getId() {
        return this.id;
    }
   /**设置id属性的值*/
    public void setId(Integer id) {
        this.id = id;
    }
   /**获取评论id属性的值*/
    public Integer getPostId() {
        return this.postId;
    }
   /**设置评论id属性的值*/
    public void setPostId(Integer postId) {
        this.postId = postId;
    }
   /**获取用户id属性的值*/
    public Integer getUserId() {
        return this.userId;
    }
   /**设置用户id属性的值*/
    public void setUserId(Integer userId) {
        this.userId = userId;
    }
   /**获取回复内容属性的值*/
    public String getReplyContent() {
        return this.replyContent;
    }
   /**设置回复内容属性的值*/
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }
   /**获取回复时间属性的值*/
    public Date getDataTime() {
        return this.dataTime;
    }
   /**设置回复时间属性的值*/
    public void setDataTime(Date dataTime) {
        this.dataTime = dataTime;
    }
}
